#include <iostream>
#include <unistd.h>
#include <string>
#include <memory>
#include "HttpServer.hpp"
#include "Socket.hpp"
#include "log.hpp"



void Usage()
{
    std::cout << "Usage: proc[pooc+]" << std::endl;
}


int main(int argc,char* argv[])
{   

    if(argc != 2)
    {
        Usage();
        return 1;
    }

    uint16_t port = std::stoi(argv[1]);
    std::unique_ptr<HttpServer> ser(new HttpServer(port));

    ser->Init();
    ser->Start();


    return 0;
}